package com.chenl.provider.controller;

import com.alibaba.fastjson.JSONObject;
import com.chenl.provider.DTO.Student;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Slf4j
@RestController
@RequestMapping("/muban")
public class test {
    public static void main(String[] args) {
        Student student=new Student();
        student.setName("张子健");
        log.info("stu:{}",JSONObject.toJSONString(student));
    }



    @Autowired
    ApplicationContext applicationContext;
}
